<span class="selectSingleJpg">
<a href="javascript:;" class="uploader-btn"
   data-url="{:url('plus/Attachment/image',['selectType'=>'image','isOne'=>1,'limit'=>1,'uid'=>$uid])}"
   data-title="选择图片"
   data-input="{$field}"
   onclick="selectAttachment(this,selectSingleJpg);" {notempty name="value" }style="display:none;" {/notempty}>
    </a>
    <input type="hidden" name="{$field}" value="{$value}"/>
    {notempty name="value"}
    <span class="uploader-file uploader_status" style="background-image:url('{$value}')">
    <a href="javascript:;" onclick="delSingleJpg(this,'{$field}');" class="imgBar">删除</a>
    </span>
    {/notempty}
</span>
<script>In('layer','wform');</script>